package scuts.core.instances;

import scuts.core.classes.Ord;

class OrdString extends Ord<String> {
  
  // boilerplate, should be avoided
  public static var get(getInstance, null):OrdString;
  
  static function getInstance ()
  {
    if (get == null) get = new OrdString(EqString.get);
    return get;
  }
  
  //
  override public function lessOrEq (a:String, b:String):Bool {
    return a < b;
  }
}